package com.ftg.learn.execl.controller;

import com.ftg.learn.execl.domain.StudentDomain;
import com.ftg.learn.execl.service.ExcelService;
import com.ftg.learn.execl.service.ExcelServiceOpt;
import com.ftg.learn.execl.util.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 布衣
 */
@RestController
public class ExcelController {

    @Resource
    ExcelService excelService;

    @Resource
    ExcelServiceOpt excelServiceOpt;

    @GetMapping("/readExecl")
    public R<String> readExcel() {
        return R.build(200, "success", excelServiceOpt.readAllSheets("C:\\Users\\yhy15\\Desktop\\教师点名册.xls"));
    }

}
